package com.gitee.exercisedemo.event.listener;

import com.gitee.exercisedemo.event.SpringEvent;
import lombok.extern.slf4j.Slf4j;
import org.springframework.context.event.EventListener;
import org.springframework.stereotype.Component;

@Slf4j
@Component
public class SpringEventListener {

    @EventListener
    public void handle(SpringEvent event) {
        log.info("receive event type:{},name:{},value:{}!", event.getType(), event.getName(), event.getValue());
    }
}
